package com.example.demomk.entity;

public class AvgMeasurementWithDetails {
    public int id;
    public int user_id;       // 改为 user_id（匹配 SQL 列名）
    public int location_id;   // 改为 location_id（匹配 SQL 列名）
    public String start_time; // 改为 start_time（匹配 SQL 列名）
    public String user_name;  // 匹配 u.name AS user_name
    public String location_name; // 匹配 l.location_name AS location_name
    public String group_name; // 匹配 l.group_name AS location_group
    public double flow;
    public int is_active;

    public AvgMeasurementWithDetails(int id, int user_id, int location_id, String start_time, String user_name, String location_name, String group_name, double flow,int is_active) {
        this.id = id;
        this.user_id = user_id;
        this.location_id = location_id;
        this.start_time = start_time;
        this.user_name = user_name;
        this.location_name = location_name;
        this.group_name = group_name;
        this.flow = flow;
        this.is_active = is_active;
    }

    public int getIs_active() {
        return is_active;
    }

    public void setIs_active(int is_active) {
        this.is_active = is_active;
    }

    public double getFlow() {
        return flow;
    }

    public void setFlow(double flow) {
        this.flow = flow;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public int getUser_id() {
        return user_id;
    }

    public void setUser_id(int user_id) {
        this.user_id = user_id;
    }

    public int getLocation_id() {
        return location_id;
    }

    public void setLocation_id(int location_id) {
        this.location_id = location_id;
    }

    public String getStart_time() {
        return start_time;
    }

    public void setStart_time(String start_time) {
        this.start_time = start_time;
    }

    public String getUser_name() {
        return user_name;
    }

    public void setUser_name(String user_name) {
        this.user_name = user_name;
    }

    public String getLocation_name() {
        return location_name;
    }

    public void setLocation_name(String location_name) {
        this.location_name = location_name;
    }

    public String getGroup_name() {
        return group_name;
    }

    public void setGroup_name(String group_name) {
        this.group_name = group_name;
    }
}
